function useSwitchPopup(defaultStatus = false) {
  const show = ref(defaultStatus)

  function open() {
    show.value = true
  }
  function close() {
    show.value = false
  }
  function toggle() {
    show.value = !show.value
  }

  return { show, open, close, toggle }
}

export default useSwitchPopup
